<%@ page contentType="text/html; charset=UTF-8"   %>
<%@include file="../inc/public.inc" %> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>新增个人费用(expensesInfo/addIndividualExpenses.jsp)</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<%=basePath%>css/form.css" rel="stylesheet" type="text/css">
	<script language="javascript" type="text/javascript"
			src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <body>
   <p>&nbsp;</p>
<table width="80%" align="center"  height="20" align=center border="0" cellspacing="0" cellpadding="0">
  			<tr bgcolor="#c0c0c0"> 
            	<td bgcolor="#c0c0c0" width="41%" height="4" align="left"> 
            		<font face=宋体 color=#000000><b>编辑费用</b></font>
            	</td>
            	<td height="19" width="59%"></td>
         	 </tr>
           <tr> 
            <td colspan="2" bgcolor="#000000" width="59%" height="1">
            	
            </td>
          </tr>
 </table>
<form action="ExpensesInfoServlet.servlet?opt=addIndividualData" method="post" id="frm" name="frm">
<table width="80%" height="165" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#000000">
			 
  			<tr bgcolor="#FFFFFF"> 
            	<td class="s4" width="10%"><div align="center">费用日期<br></div></td>
    			<td>
                &nbsp;&nbsp; &nbsp;
    			<input id="generatedDate" readonly="readonly" name="generatedDate" class="Wdate" type="text" value="" 
    			onFocus="WdatePicker()"/> 　 
    			</td>
    			<td class="s4" width="10%"><div align="center">分类<br></div></td>
    			<td>
    			 	 <input id="classifyName" name="classifyName" type="text"   value=""/> 
    			</td>
    			 
 			 </tr>
             <tr bgcolor="#FFFFFF"> 
            	 
    			<td class="s4" width="10%"  ><div align="center">备注<br></div></td>
    			<td colspan="3">　
					<input id="discription" name="discription" type="text" size="80" value=""/> 
    			</td>
 			 </tr>
   			  <tr bgcolor="#FFFFFF"> 
    			<td class="s4" width="10%"><div align="center">付出费用金额<br></div></td>
    			<td colspan="3">　
    				<input type="text" name="jeValue" value="0"   > 元（人民币）
    				 
    			</td> 
 			 </tr>

  			<tr bgcolor="#FFFFFF"> 
    			<td colspan="4" class="s4"> 
           			<div align="center"><font color="#FFFFFF"> 
             						<input type="button" name="Submit" value="保存" class="btnblue"  onclick="SaveSubmit();"/>
									&nbsp;
									<input type="reset" name="reset" value="重写" class="btnblue" />
									&nbsp;
									<input type="button" name="back" value="返回" class="btnblue" onclick="history.back(-1);"/>
             		 </font></div> 
         		</td>
  		</tr>
		</table>
</form>

</body>
</html>
<script type="text/javascript">

		//保存提交
		function SaveSubmit(){
			
			var generatedDateObj=document.getElementById("generatedDate");
			if(generatedDateObj.value==""){
				 
				Ext.MessageBox.show({
		           title: '错误',
		           msg: '请输入费用日期!',
		           width: 250,
		           buttons: Ext.MessageBox.OK,
		           icon: Ext.MessageBox.ERROR
		            });
				return;
			}
		
			if(confirm('是否确定提交?')){
				document.all.frm.submit();
			}
		}

</script>